package Demo;

public class yhkPay extends Pay{
    double Money = 100;
    public void pay(double money){
        if(Money>=money){
            System.out.println("银行卡支付"+money);
            Money = Money-money;
            System.out.println("银行卡余额为"+Money);
        }
        else {
            System.out.println("银行卡余额不足");
        }
    }
}
